﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using System.Web.Mvc;

namespace Wjs.Controllers
{
    public class ComboBoxDataController : Controller
    {
        //
        // GET: /ComboBoxData/GetColors

        public ActionResult GetColors()
        {
            return Json(new object[] {
                new {
                    ColorId = 1,
                    ColorName = "Green"
                },
                new {
                    ColorId = 2,
                    ColorName = "Yellow"
                },
                new {
                    ColorId = 3,
                    ColorName = "Red"
                },
                new {
                    ColorId = 4,
                    ColorName = "Blue"
                },
            }, 
            JsonRequestBehavior.AllowGet);
        }

    }
}
